package cn.edu.pojo;

import java.math.BigDecimal;

public class Book {
    private String sn;
    private String bname;
    private BigDecimal price;
    private String author;
    private String publish;

    public Book() {
    }

    public Book(String sn, String bname, BigDecimal price, String author, String publish) {
        this.sn = sn;
        this.bname = bname;
        this.price = price;
        this.author = author;
        this.publish = publish;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublish() {
        return publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    @Override
    public String toString() {
        return "Book{" +
                "sn='" + sn + '\'' +
                ", bname='" + bname + '\'' +
                ", price=" + price +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                '}';
    }
}
